home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / tcl / tclm_1_0.lha / tclm-1.0 / MLIB / mdevice.h < prev    next >
C/C++ Source or Header  |  1993-08-16  |  2KB  |  51 lines

  1. /*-
  2.  * Copyright (c) 1993 Michael B. Durian.  All rights reserved.
  3.  *
  4.  * Redistribution and use in source and binary forms, with or without
  5.  * modification, are permitted provided that the following conditions
  6.  * are met:
  7.  * 1. Redistributions of source code must retain the above copyright
  8.  *    notice, this list of conditions and the following disclaimer.
  9.  * 2. Redistributions in binary form must reproduce the above copyright
  10.  *    notice, this list of conditions and the following disclaimer in the
  11.  *    documentation and/or other materials provided with the distribution.
  12.  * 3. All advertising materials mentioning features or use of this software
  13.  *    must display the following acknowledgement:
  14.  *    This product includes software developed by Michael B. Durian.
  15.  * 4. The name of the the Author may be used to endorse or promote 
  16.  *    products derived from this software without specific prior written 
  17.  *    permission.
  18.  *
  19.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 
  20.  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  21.  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  
  22.  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
  23.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  25.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  26.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  27.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  28.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  29.  * SUCH DAMAGE.
  30.  */
  31. /*
  32.  * mdevice.h,v 1.5 1993/05/05 01:34:17 durian Exp
  33.  */
  34. #ifndef MDEVICE_H
  35. #define MDEVICE_H
  36.  
  37. typedef enum {PLAY, RECORD, PLAYRECORD} PlayMode;
  38.  
  39. extern int play_tracks _ANSI_ARGS_((int dev, TCHUNK *tracks, int *indices,
  40.     int num, int repeat));
  41. extern int record_tracks _ANSI_ARGS_((int dev, TCHUNK *p_tracks, int *indices,
  42.     int p_num, TCHUNK *r_track, int repeat));
  43. extern int stop_processing _ANSI_ARGS_((int dev));
  44. extern int open_midi_device _ANSI_ARGS_((PlayMode mode));
  45. extern int init_midi_device _ANSI_ARGS_((int dev, HCHUNK *hd, double reltempo));
  46. extern int start_midi_device _ANSI_ARGS_((int dev, PlayMode mode));
  47. extern int stop_midi_device _ANSI_ARGS_((int dev, PlayMode mode));
  48. extern int close_midi_device _ANSI_ARGS_((int dev));
  49.  
  50. #endif
  51.